﻿namespace HRM.CORE
{
    using DevExpress.Utils;
    using DevExpress.XtraBars;
    using DevExpress.XtraEditors;
    using DevExpress.XtraEditors.Controls;
    using DevExpress.XtraEditors.Repository;
    using DevExpress.XtraGrid.Columns;
    using DevExpress.XtraTab;
    using APP.HELPER;
    using System; using Extra.ERP;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms; using Common;
    using Common;

    public class xucBalanceSheet : Common.xucBase
    {
        private Bar bar1;
        private BarDockControl barDockControlBottom;
        private BarDockControl barDockControlLeft;
        private BarDockControl barDockControlRight;
        private BarDockControl barDockControlTop;
        private BarEditItem barEditItem1;
        private BarEditItem barEditItem2;
        private BarManager barManager1;
        private BarEditItem bbeYear;
        private BarButtonItem bbiClose;
        private BarButtonItem bbiExport;
        private BarButtonItem bbiFormula;
        private BarButtonItem bbiPrint;
        private BarButtonItem bbiRecal;
        private BarButtonItem bbiReload;
        private IContainer components = null;
        private GridColumn gridColumn1;
        private GridColumn gridColumn2;
        public DevExpress.Utils.ImageCollection imageCollection2;
        private RepositoryItemTimeEdit repMonth;
        private RepositoryItemCalcEdit repositoryItemCalcEdit1;
        private RepositoryItemCheckEdit repositoryItemCheckEdit1;
        private RepositoryItemComboBox repositoryItemComboBox1;
        private RepositoryItemTimeEdit repYear;
        private XtraTabPage tab05ABKTNCN;
        private XtraTabPage tab05BBKTNCN;
        private XtraTabControl xtraTabControl1;
        private HRM.CORE.xuc05ABKTNCN xuc05ABKTNCN;
        private HRM.CORE.xuc05BBKTNCN xuc05BBKTNCN;

        public xucBalanceSheet()
        {
            this.InitializeComponent();
            this.Init();
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void Init()
        {
            if (this.xuc05ABKTNCN == null)
            {
                this.xuc05ABKTNCN = new HRM.CORE.xuc05ABKTNCN();
                this.xuc05ABKTNCN.Dock = DockStyle.Fill;
                this.tab05ABKTNCN.Controls.Add(this.xuc05ABKTNCN);
            }
        }

        private void InitializeComponent()
        {
            this.components = new Container();
            ComponentResourceManager manager = new ComponentResourceManager(typeof(xucBalanceSheet));
            SerializableAppearanceObject appearance = new SerializableAppearanceObject();
            this.barManager1 = new BarManager(this.components);
            this.bar1 = new Bar();
            this.bbeYear = new BarEditItem();
            this.repYear = new RepositoryItemTimeEdit();
            this.barEditItem1 = new BarEditItem();
            this.repositoryItemCheckEdit1 = new RepositoryItemCheckEdit();
            this.barEditItem2 = new BarEditItem();
            this.repositoryItemCalcEdit1 = new RepositoryItemCalcEdit();
            this.bbiRecal = new BarButtonItem();
            this.bbiFormula = new BarButtonItem();
            this.bbiPrint = new BarButtonItem();
            this.bbiExport = new BarButtonItem();
            this.bbiReload = new BarButtonItem();
            this.bbiClose = new BarButtonItem();
            this.barDockControlTop = new BarDockControl();
            this.barDockControlBottom = new BarDockControl();
            this.barDockControlLeft = new BarDockControl();
            this.barDockControlRight = new BarDockControl();
            this.imageCollection2 = new DevExpress.Utils.ImageCollection(this.components);
            this.repMonth = new RepositoryItemTimeEdit();
            this.repositoryItemComboBox1 = new RepositoryItemComboBox();
            this.gridColumn1 = new GridColumn();
            this.gridColumn2 = new GridColumn();
            this.xtraTabControl1 = new XtraTabControl();
            this.tab05ABKTNCN = new XtraTabPage();
            this.tab05BBKTNCN = new XtraTabPage();
            this.barManager1.BeginInit();
            this.repYear.BeginInit();
            this.repositoryItemCheckEdit1.BeginInit();
            this.repositoryItemCalcEdit1.BeginInit();
            this.imageCollection2.BeginInit();
            this.repMonth.BeginInit();
            this.repositoryItemComboBox1.BeginInit();
            this.xtraTabControl1.BeginInit();
            this.xtraTabControl1.SuspendLayout();
            base.SuspendLayout();
            this.barManager1.Bars.AddRange(new Bar[] { this.bar1 });
            this.barManager1.DockControls.Add(this.barDockControlTop);
            this.barManager1.DockControls.Add(this.barDockControlBottom);
            this.barManager1.DockControls.Add(this.barDockControlLeft);
            this.barManager1.DockControls.Add(this.barDockControlRight);
            this.barManager1.Form = this;
            this.barManager1.Images = this.imageCollection2;
            this.barManager1.Items.AddRange(new BarItem[] { this.bbiPrint, this.bbiReload, this.bbiFormula, this.bbiClose, this.bbeYear, this.bbiExport, this.bbiRecal, this.barEditItem1, this.barEditItem2 });
            this.barManager1.MaxItemId = 0x19;
            this.barManager1.RepositoryItems.AddRange(new RepositoryItem[] { this.repMonth, this.repYear, this.repositoryItemComboBox1, this.repositoryItemCheckEdit1, this.repositoryItemCalcEdit1 });
            this.bar1.BarName = "Tools";
            this.bar1.DockCol = 0;
            this.bar1.DockRow = 0;
            this.bar1.DockStyle = BarDockStyle.Top;
            this.bar1.LinksPersistInfo.AddRange(new LinkPersistInfo[] { new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbeYear, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.barEditItem1, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.barEditItem2, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiRecal, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiFormula, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiPrint, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiExport, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiReload, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiClose, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph) });
            this.bar1.OptionsBar.UseWholeRow = true;
            this.bar1.Text = "Tools";
            this.bbeYear.Caption = "Kỳ T\x00ednh Thuế:";
            this.bbeYear.Edit = this.repYear;
            this.bbeYear.Id = 14;
            this.bbeYear.Name = "bbeYear";
            this.repYear.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.repYear.Appearance.Options.UseFont = true;
            this.repYear.AutoHeight = false;
            this.repYear.Buttons.AddRange(new EditorButton[] { new EditorButton() });
            this.repYear.Mask.EditMask = "yyyy";
            this.repYear.Name = "repYear";
            this.barEditItem1.Caption = "Lần đầu";
            this.barEditItem1.Edit = this.repositoryItemCheckEdit1;
            this.barEditItem1.Id = 0x17;
            this.barEditItem1.Name = "barEditItem1";
            this.repositoryItemCheckEdit1.AutoHeight = false;
            this.repositoryItemCheckEdit1.Name = "repositoryItemCheckEdit1";
            this.barEditItem2.Caption = "Bổ sung lần thứ:";
            this.barEditItem2.Edit = this.repositoryItemCalcEdit1;
            this.barEditItem2.Id = 0x18;
            this.barEditItem2.Name = "barEditItem2";
            this.repositoryItemCalcEdit1.AutoHeight = false;
            this.repositoryItemCalcEdit1.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repositoryItemCalcEdit1.Name = "repositoryItemCalcEdit1";
            this.bbiRecal.Caption = "T\x00ednh Lại";
            this.bbiRecal.Id = 20;
            this.bbiRecal.ImageIndex = 0x41;
            this.bbiRecal.Name = "bbiRecal";
            this.bbiFormula.Caption = "Th\x00f4ng Tin Đại L\x00fd Thuế";
            this.bbiFormula.Id = 10;
            this.bbiFormula.ImageIndex = 0;
            this.bbiFormula.Name = "bbiFormula";
            this.bbiPrint.Caption = "In";
            this.bbiPrint.Id = 5;
            this.bbiPrint.ImageIndex = 9;
            this.bbiPrint.Name = "bbiPrint";
            this.bbiExport.Caption = "Xuất";
            this.bbiExport.Id = 0x11;
            this.bbiExport.ImageIndex = 0x31;
            this.bbiExport.Name = "bbiExport";
            this.bbiReload.Caption = "Nạp Lại";
            this.bbiReload.Id = 8;
            this.bbiReload.ImageIndex = 0x2a;
            this.bbiReload.Name = "bbiReload";
            this.bbiClose.Caption = "Đ\x00f3ng";
            this.bbiClose.Id = 12;
            this.bbiClose.ImageIndex = 0x16;
            this.bbiClose.Name = "bbiClose";
            this.imageCollection2.ImageStream = (ImageCollectionStreamer) manager.GetObject("imageCollection2.ImageStream");
            this.imageCollection2.Images.SetKeyName(0x3d, "Vista (35).ico");
            this.imageCollection2.Images.SetKeyName(0x3e, "Security.ico");
            this.imageCollection2.Images.SetKeyName(0x3f, "RibbonPrintPreview_DocumentMapLarge.png");
            this.imageCollection2.Images.SetKeyName(0x40, "11.png");
            this.imageCollection2.Images.SetKeyName(0x41, "Sua.png");
            this.imageCollection2.Images.SetKeyName(0x42, "Them.png");
            this.imageCollection2.Images.SetKeyName(0x43, "PhanQuyen.png");
            this.imageCollection2.Images.SetKeyName(0x44, "11.png");
            this.imageCollection2.Images.SetKeyName(0x45, "plus.png");
            this.imageCollection2.Images.SetKeyName(70, "send.png");
            this.repMonth.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.repMonth.Appearance.Options.UseFont = true;
            this.repMonth.AutoHeight = false;
            this.repMonth.Buttons.AddRange(new EditorButton[] { new EditorButton() });
            this.repMonth.Mask.EditMask = "MM";
            this.repMonth.Name = "repMonth";
            this.repositoryItemComboBox1.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.repositoryItemComboBox1.Appearance.Options.UseFont = true;
            this.repositoryItemComboBox1.AutoHeight = false;
            this.repositoryItemComboBox1.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo, "", -1, true, false, false, ImageLocation.MiddleCenter, null, new KeyShortcut(Keys.None), appearance, "", null, null, true) });
            this.repositoryItemComboBox1.Name = "repositoryItemComboBox1";
            this.repositoryItemComboBox1.ReadOnly = true;
            this.gridColumn1.Caption = "gridColumn1";
            this.gridColumn1.Name = "gridColumn1";
            this.gridColumn1.Visible = true;
            this.gridColumn1.VisibleIndex = 0;
            this.gridColumn2.Caption = "gridColumn2";
            this.gridColumn2.Name = "gridColumn2";
            this.gridColumn2.Visible = true;
            this.gridColumn2.VisibleIndex = 1;
            this.xtraTabControl1.Dock = DockStyle.Fill;
            this.xtraTabControl1.HeaderLocation = TabHeaderLocation.Bottom;
            this.xtraTabControl1.Location = new Point(0, 0x1a);
            this.xtraTabControl1.Name = "xtraTabControl1";
            this.xtraTabControl1.SelectedTabPage = this.tab05ABKTNCN;
            this.xtraTabControl1.Size = new Size(0x431, 0x261);
            this.xtraTabControl1.TabIndex = 4;
            this.xtraTabControl1.TabPages.AddRange(new XtraTabPage[] { this.tab05ABKTNCN, this.tab05BBKTNCN });
            this.xtraTabControl1.Selected += new TabPageEventHandler(this.xtraTabControl1_Selected);
            this.tab05ABKTNCN.Name = "tab05ABKTNCN";
            this.tab05ABKTNCN.Size = new Size(0x42a, 580);
            this.tab05ABKTNCN.Text = "05A/BK-TNCN";
            this.tab05BBKTNCN.Name = "tab05BBKTNCN";
            this.tab05BBKTNCN.Size = new Size(0x42a, 580);
            this.tab05BBKTNCN.Text = "05B/BK-TNCN";
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.Controls.Add(this.xtraTabControl1);
            base.Controls.Add(this.barDockControlLeft);
            base.Controls.Add(this.barDockControlRight);
            base.Controls.Add(this.barDockControlBottom);
            base.Controls.Add(this.barDockControlTop);
            base.Name = "xucBalanceSheet";
            base.Size = new Size(0x431, 0x27b);
            this.barManager1.EndInit();
            this.repYear.EndInit();
            this.repositoryItemCheckEdit1.EndInit();
            this.repositoryItemCalcEdit1.EndInit();
            this.imageCollection2.EndInit();
            this.repMonth.EndInit();
            this.repositoryItemComboBox1.EndInit();
            this.xtraTabControl1.EndInit();
            this.xtraTabControl1.ResumeLayout(false);
            base.ResumeLayout(false);
        }

        private void xtraTabControl1_Selected(object sender, TabPageEventArgs e)
        {
            if (e.Page == this.tab05ABKTNCN)
            {
                if (this.xuc05ABKTNCN == null)
                {
                    this.xuc05ABKTNCN = new HRM.CORE.xuc05ABKTNCN();
                    this.xuc05ABKTNCN.Dock = DockStyle.Fill;
                    this.tab05ABKTNCN.Controls.Add(this.xuc05ABKTNCN);
                }
            }
            else if ((e.Page == this.tab05BBKTNCN) && (this.xuc05BBKTNCN == null))
            {
                this.xuc05BBKTNCN = new HRM.CORE.xuc05BBKTNCN();
                this.xuc05BBKTNCN.Dock = DockStyle.Fill;
                this.tab05BBKTNCN.Controls.Add(this.xuc05BBKTNCN);
            }
        }
    }
}

